<template>
  <div v-if="$route.meta.useFrame != undefined && $route.meta.useFrame==false">
    <RouterView></RouterView>
  </div>
  <div v-if="$route.meta.useFrame == undefined || $route.meta.useFrame == true">
  <el-container>
    <el-header>
      <el-row class="header" justify="space-between">
        <el-col :span="6" class="logo">
          <img src="@/assets/logo.jpg">
        </el-col>
        <el-col :span="6"></el-col>
        <el-col :span="6">
          <el-dropdown>
            <span class="el-dropdown-link">
              萧炎<el-icon class="el-icon--right"><arrow-down /></el-icon>
            </span>
            <template #dropdown>
              <el-dropdown-menu>
                <el-dropdown-item>个人中心</el-dropdown-item>
                <el-dropdown-item>账户与安全</el-dropdown-item>
                <el-dropdown-item>常见问题</el-dropdown-item>
                <el-dropdown-item >关于我们</el-dropdown-item>
                <el-dropdown-item divided>注销</el-dropdown-item>
              </el-dropdown-menu>
            </template>
          </el-dropdown>
        </el-col>
      </el-row>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <Menu></Menu>
      </el-aside>
      <el-main>
        <!--内容区-->
        <RouterView></RouterView>
      </el-main>
    </el-container>
  </el-container>
    </div>
</template>
<script setup lang="ts">
import Menu from './components/Menu.vue';
</script>

<style scoped>
* {
  margin: 0px;
  padding: 0px;
}

.el-header {
  --el-header-height: 48px !important;
  padding-left: 0px;
  padding-right: 0px;
}

.header {
  
  background-color: #c6e2ff;
  height: 48px;
}

.logo img {
  width: 200px;
  height: 47px;
}
.el-dropdown{
  float: right;
  margin-top: 15px;
  color: white;
}
</style>
